package com.wave.wavesystem.business.service;

import com.mybatisflex.core.paginate.Page;
import com.wave.wavesystem.business.pojo.dto.userRelation.UserRoleQueryRequest;
import com.wave.wavesystem.business.pojo.entity.UserEntity;
import com.wave.wavesystem.business.pojo.entity.UserRoleEntity;
import com.wave.wavesystem.core.service.WaveService;
import wave.common.pojo.entity.Query;

import java.util.List;

/**
* @author  夕下风波
* @date 2025-02-11
* @description 用户-角色关联表 业务层接口
*/
public interface UserRoleService extends WaveService<UserRoleEntity> {

    boolean batchSave(UserRoleQueryRequest userRoles);

    boolean kickOutDept(UserRoleQueryRequest useRoles);

    List<UserEntity> notInRoleUser(Long roleId);

    Page<UserEntity> roleUsersPage(Long roleId, Query query);

}
